<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/10
 * Time: 13:58
 */

namespace app\admin\model;


use think\Model;

class Coupon extends Model
{
    public function user(){
        return self::belongsTo("User","uid","uid");
    }

    public function store(){
        return self::belongsTo("StoreCoupon","coupon_id","id");
    }
}